package com.jxl.domain.convert;

import com.jxl.domain.entity.AuthRolePermissionBO;
import com.jxl.infra.basic.entity.AuthRolePermission;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthRolePermissionBOConvert {

    AuthRolePermissionBOConvert INSTANCE = Mappers.getMapper(AuthRolePermissionBOConvert.class);

    /**
     * 类型转换
     * @param authRolePermissionDto
     * @return
     */
    AuthRolePermission convertDtoToSubjectInfoBO(AuthRolePermissionBO authRolePermissionDto);

    /**
     * 集合类型转换
     * @param authRolePermissionDtos
     * @return
     */
    List<AuthRolePermission> convertDtoToSubjectInfoBOList(List<AuthRolePermissionBO> authRolePermissionDtos);
}
